翻訳と辞書
Words near each other
・ Polygamy, USA
・ Polygar Wars
・ Polygasropteryx
・ Polygene
・ Polygenesis
・ Polygenesis (linguistics)
・ Polygenetic volcanic field
・ Polygenis gwyni
・ Polygenism
・ Polygireulima
・ Polygireulima amblytera
・ Polyglot (book)
・ Polyglot (computing)
・ Polyglot (disambiguation)
・ Polyglot (webzine)
Polyglot markup
・ Polyglot Persistence
・ Polyglotism
・ Polyglotta Africana
・ Polyglutamation
・ Polyglutamic acid
・ Polyglutamine tract
・ Polyglutamylation
・ Polyglycerol polyricinoleate
・ Polyglycolide
・ Polyglycylation
・ Polyglyphanodontia
・ Polygnamptia
・ Polygnotos (vase painter)
・ Polygnotos Vagis Municipal Museum


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Polyglot markup : ウィキペディア英語版
Polyglot markup

In computing, a polyglot markup is a document or script written in a valid form of multiple markup languages, which performs the same output, independent of the markup's parser, layout engine, or interpreter. In general, the ''polyglot markup'' is a commom subset of two or more languages, that can be used as a robust or simplified profile.
Polyglot HTML is HTML that has been written to conform to both the HTML and XHTML specifications.〔(Polyglot Markup: HTML-Compatible XHTML Documents ), W3C Working Draft 5 April 2011〕 A polyglot document can therefore be parsed as either HTML (which is SGML-compatible) or XML, and will produce the same DOM structure either way. For example, in order for an HTML5 document to meet these criteria, the two requirements are that it must have an HTML5 doctype, and be written in well-formed XHTML.〔(The WhatWG Blog - XHTML5 in a nutshell ), 25 July 2010〕 The same document can then be served as either HTML or XHTML, depending on browser support and MIME type.
== Polyglot HTML requirements ==
As expressed by the ''html-polyglot recommendation'',〔 to write a polyglot HTML5 document, the following key points should be observed:
# Processing instructions and the XML declaration
# Specifying a document’s character encoding
# The DOCTYPE
# Namespaces
# Element syntax
# Element content
# Text
# Attributes
# Named entity references
# Comments
# Scripting and styling polyglot markup
The most basic possible polyglot markup document would therefore look like this:〔




The title element must not be empty.





In a polyglot markup document non-void elements (such as script, p, div) cannot be self-closing even if they are empty, as this is not valid HTML.〔(Polyglot Markup: HTML-Compatible XHTML Documents: 6.4 Void Elements ). W3C Editor's Draft 9 July 2012.〕 For example, to add an empty textarea to a page, one can not use instead.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Polyglot markup」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.